/**
 * 模块：医院入驻平台-FileLog
 */
package design.onekey.controller;


import design.onekey.annotation.MethodLog;
import design.onekey.base.BaseEntity;
import design.onekey.base.Response;
import design.onekey.constant.Constants;
import design.onekey.model.FileLog;
import design.onekey.service.IFileLogService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
* @Description: FileLogcontroller类
* @author
* @date 2020-06-28 09:30:52
* @version V1.0
*/
@RestController
@RequestMapping("/api/fileLog")
public class FileLogController extends BaseController {

   /**
    * iFileLogService服务注入
    */
   @Autowired
   private IFileLogService iFileLogService;

   /**
   * @Description: 分页查询表格
   * @param FileLog
   * @param @return
   * @return BaseEntity
   * @throws
   */
   @ApiOperation(value="FileLog-获取表格数据", notes="获取表格数据")
   @RequestMapping(value = "/getTableList",method = RequestMethod.POST)
   @MethodLog(module="FileLog",remark="获取页面表格数据",operateType= Constants.OPERATE_TYPE_SEARCH)
   public Response getTableList(@RequestBody FileLog model)
   {

       BaseEntity result = new BaseEntity();
       result = iFileLogService.tablePagingQuery(model);
       return Response.success(result);
   }
}
